﻿namespace CohesionAndCoupling
{
    using System;

    internal class UtilsExamples
    {
        private static void Main()
        {
            Console.WriteLine(FilenameManipulations.GetFileExtension("example"));
            Console.WriteLine(FilenameManipulations.GetFileExtension("example.pdf"));
            Console.WriteLine(FilenameManipulations.GetFileExtension("example.new.pdf"));

            Console.WriteLine(FilenameManipulations.GetFileNameWithoutExtension("example"));
            Console.WriteLine(FilenameManipulations.GetFileNameWithoutExtension("example.pdf"));
            Console.WriteLine(FilenameManipulations.GetFileNameWithoutExtension("example.new.pdf"));

            Console.WriteLine(
                "Distance in the 2D space = {0:f2}",
                TwoDimensionalOperations.CalculateDistance(1, -2, 3, 4));
            Console.WriteLine(
                "Distance in the 3D space = {0:f2}",
                ThreeDimensionalOperations.CalculateDistance(5, 2, -1, 3, -6, 4));

            double x = 3;
            double y = 4;
            double z = 5;
            Console.WriteLine("Volume = {0:f2}", ThreeDimensionalOperations.CalculateVolume(x, y, z));
            Console.WriteLine("Diagonal XYZ = {0:f2}", ThreeDimensionalOperations.CalculateDistanceToOrigin(x, y, z));
            Console.WriteLine("Diagonal XY = {0:f2}", TwoDimensionalOperations.CalculateDistanceToOrigin(x, y));
            Console.WriteLine("Diagonal XZ = {0:f2}", TwoDimensionalOperations.CalculateDistanceToOrigin(x, z));
            Console.WriteLine("Diagonal YZ = {0:f2}", TwoDimensionalOperations.CalculateDistanceToOrigin(z, y));
        }
    }
}